$(function(){

    $('.select-x').on('click',function(){
        $('.select-all').hide()
    });
    $('.selecthidden').on('click',function(){
        $('.select-all').show()
    });
    //单个checkbox与全选的关系函数
    $('.select-content').on('click','.checkboxs',function(e){
        stopFunc(e);
    });
    $('.select-content').on('click','li',function(){
        $(this).children('.checkboxs').click();
    })

})


function stopFunc(e){
    e.stopPropagation?e.stopPropagation():e.cancelBubble=true;
}